package com.example.shopping_web_back.service.impl;

import com.example.shopping_web_back.pojo.ShoppingCar;

import java.util.List;

public interface ShoppingCarServiceImpl {

    //查看购物车
    List<ShoppingCar> list();

    //添加商品
    void addGoods(ShoppingCar shoppingCar);

    //更新购物车
    void updateGoods(ShoppingCar shoppingCar, Integer num, Boolean is_purchase);

    //删除购物车商品
    void deleteGoods(ShoppingCar shoppingCar);

    //查看购物车里面有没有这个商品
    ShoppingCar findGoods(ShoppingCar shoppingCar);
}
